package com.wwz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 人事管理
 * @date 2022/03/24 31:02:10
 */
@Data
@ApiModel("人事管理")
@TableName("personnel")
@EqualsAndHashCode(callSuper = false)
public class Personnel implements Serializable {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("密码")
    private String passWord;

    @ApiModelProperty("电话")
    private String phone;


    @ApiModelProperty("住址")
    private String address;


    @ApiModelProperty("工号")
    private String jobNumber;


    @ApiModelProperty("照片")
    private String photo;

    @TableField(exist = false)
    @ApiModelProperty("文件信息")
    private FileInfo fileInfo;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
